import request from '@/utils/request'

// 查询检查项列表
export function listGroup(query) {
  return request({
    url: '/reserve/checkGroup/list',
    method: 'get',
    params: query
  })
}


// 删除检查项
export function delGroup(groupIds) {
  return request({
    url: '/reserve/checkGroup/' + groupIds,
    method: 'delete'
  })
}

// 新增
export function addGroup(data) {
  return request ({
    url: '/reserve/checkGroup/addGroup',
    method: 'post',
    data: data
  })
}

// 查询单条
export function getGroup(groupId) {
  return request ({
    url: '/reserve/checkGroup/' + groupId,
    method: 'get'
  })
}

// 编辑更新
export function updateGroup(data) {
  return request ({
    url: '/reserve/checkGroup/updateGroup',
    method: 'post',
    data: data
  })
}

// 删除检查组中的检查项
export function delGroupitems(data) {
  return request({
    url: '/reserve/checkGroup/itemsid',
    method: 'post',
    data: data
  })
}
// 获取可以被添加进检查组的检查项
export function getInfoByCheckGroup(query) {
  return request({
    url: '/reserve/checkGroup/getInfoByCheckGroup',
    method: 'get',
    params: query
  })
}

// 新增检查组中的检查项
export function addCheckGroupItem(data) {
  return request({
    url: '/reserve/checkGroup/addCheckGroupItem',
    method: 'post',
    data: data
  })
}





